<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/views1/DTD/views1-transitional.dtd">
<f:view xmlns="http://www.w3.org/1999/xhtml"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.prime.com.tr/ui">

	<p:dialog widgetVar="dialogoEditarAlternativa" modal="true"
		width="500" closable="true" header="Editar Alternativa"
		minWidth="500" >
		<h:form id="formDialogoEditarAlternativa">
		<div class="dialogo_container_18">
			<div class="dialogo_grid_18">
				<p:messages id="messageAlterativa" />
			</div>
			<div class="dialogo_grid_3">Descrição</div>
			<div class="dialogo_grid_15">
				<p:inputTextarea value="#{provaBean.alternativaBaseInstance.texto}" styleClass="dialogo_width_15" 
					required="true" requiredMessage="O campo 'Descrição' é obrigatório!" autoResize="false"/>
			</div>
			<div class="dialogo_grid_18 divHr"><hr/></div>
			<div class="dialogo_grid_18 right">
				<p:commandButton value="Salvar" action="#{provaBean.salvarAlternativaBase}"
					update="@form" oncomplete="dialogoEditarAlternativa.hide()" />
				<p:commandButton value="Desisir" type="button" onclick="dialogoEditarAlternativa.hide()" />
			</div>
		</div>
		</h:form>
	</p:dialog>
</f:view>